Error: Pin value changes can only be set on output pins